package com.rahms.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rahms.pojo.entity.MedicationReminderLog;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 用药提醒记录服务接口
 */
public interface MedicationReminderLogService extends IService<MedicationReminderLog> {
    
    // 根据计划ID获取提醒记录
    List<MedicationReminderLog> getLogsByPlanId(Long planId);
    
    // 根据老人ID获取提醒记录
    List<MedicationReminderLog> getLogsByElderlyId(Long elderlyId);
    
    // 获取指定日期范围内的提醒记录
    List<MedicationReminderLog> getLogsByDateRange(Long elderlyId, LocalDateTime startDate, LocalDateTime endDate);
    
    // 确认用药
    boolean confirmMedication(Long logId, Long userId);
}